scrolledwindow: Fix typo in get_preferred_height calculation
authorDebarshi Ray <debarshir@gnome.org>
Mon, 16 May 2016 19:13:14 +0000 (21:13 +0200)
committerDebarshi Ray <debarshir@gnome.org>
Tue, 17 May 2016 05:39:24 +0000 (07:39 +0200)
commitdf98140e8e0fcd9727622ba0b296a0932c70e493
treec5b4df4f26ae73fa0fff419a71208a483c2de4ca
parent175cf7e32d39be2b2f1afff9ef7c16dc49b75289
scrolledwindow: Fix typo in get_preferred_height calculation

When we are beginning to calculate the height, if the vscrollbar_policy
is not GTK_POLICY_NEVER, and there is no min-content-height, then we
need some small non-zero value to get started. The idea is to always
ask for at least enough to fit the horizontal scrollbar.

Simply put, this should be the mirror image of the corresponding width
calculation code.

Those who got used to the buggy behaviour might notice that their
GtkScrolledWindows are not as tall as they used to be.

Fall out from 55196a705f00564a44647bfc97981db0a783369a

https://bugzilla.gnome.org/show_bug.cgi?id=766530
gtk/gtkscrolledwindow.c